package com.store_pro.entity;

import jakarta.persistence.Id;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 订单数据的实体类
 *
 * @author jasmine
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Order extends BaseEntity {
    /*** 订单id*/
    @Id
    private Integer oid;
    /*** 用户id*/
    private Integer uid;
    /*** 收货人姓名*/
    private String recvName;
    /*** 收货人电话*/
    private String recvPhone;
    /*** 收货地址省*/
    private String recvProvince;
    /*** 收货地址市*/
    private String recvCity;
    /*** 收货地址县*/
    private String recvArea;
    /*** 收货地址*/
    private String recvAddress;
    /*** 订单总金额*/
    private Long totalPrice;
    /*** 订单状态*/
    private Integer status;
    /*** 订单创建时间*/
    private Date orderTime;
    /*** 支付时间*/
    private Date payTime;

}
